﻿<UserControl x:Class="HSE.AqxsAdd"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" 
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">

    <UserControl.Resources>
        <Style x:Key="NewInfoLable" TargetType="TextBlock">
            <Setter Property="Foreground" Value="Gray"/>
            <Setter Property="FontSize" Value="18" />
            <Setter Property="Margin" Value="0 5 0 5" />
            <Setter Property="HorizontalAlignment" Value="Right" />
            <Setter Property="VerticalAlignment" Value="Center" />
        </Style>
        <Style x:Key="NewTextBox" TargetType="TextBox">
            <Setter Property="Width" Value="200" />
            <Setter Property="Margin" Value="10 5 0 5" />
            <Setter Property="Height" Value="35" />
        </Style>
        <Style x:Key="NewPasswordBox" TargetType="PasswordBox">
            <Setter Property="Width" Value="200" />
            <Setter Property="Margin" Value="10 5 0 5" />
            <Setter Property="Height" Value="35" />
            <Setter Property="PasswordChar" Value="*" />
        </Style>

        <Style x:Key="newcombox" TargetType="telerik:RadComboBox">
            <Setter Property="Width" Value="200" />
            <Setter Property="Margin" Value="10 5 0 5" />
            <Setter Property="Height" Value="35" />
        </Style>

        <DataTemplate x:Key="ItemTemplate">
            <Grid>
                <StackPanel Orientation="Vertical">
                    <Image Source="{Binding IconBitmap}" HorizontalAlignment="Center" Width="260" Height="200" Margin="0">
                        <!--<i:Interaction.Behaviors>
                            <ei:FluidMoveSetTagBehavior Tag="DataContext"/>
                        </i:Interaction.Behaviors>-->
                    </Image>
                    <TextBlock Text="{Binding TipInfo}" HorizontalAlignment="Center" VerticalAlignment="Top" d:LayoutOverrides="Width" Margin="0,5,0,0" Foreground="#FF857474" FontFamily="Segoe UI" FontSize="14.667"/>
                </StackPanel>
                <Image DataContext="{Binding}" MouseLeftButtonUp="Image_MouseLeftButtonUp" Width="24" Height="24" HorizontalAlignment="Right" VerticalAlignment="Top" Source="/Images/delete.png"></Image>
            </Grid>

        </DataTemplate>

        <ItemsPanelTemplate x:Key="ItemsPanelTemplate1">
            <StackPanel  Orientation="Horizontal"  Margin="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >

            </StackPanel>
        </ItemsPanelTemplate>
    </UserControl.Resources>

    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="auto"></ColumnDefinition>
            <ColumnDefinition Width="auto"></ColumnDefinition>
            <ColumnDefinition Width="*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"></RowDefinition>
            <RowDefinition Height="auto"></RowDefinition>
            <RowDefinition Height="auto"></RowDefinition>
            <RowDefinition Height="auto"></RowDefinition>
            <RowDefinition Height="auto"></RowDefinition>
        </Grid.RowDefinitions>

        <TextBlock Grid.Row="0" Grid.Column="0" Text="宣誓单位：" Style="{StaticResource NewInfoLable}"></TextBlock>
        <telerik:RadComboBox Grid.Row="0" Grid.Column="1" Style="{StaticResource newcombox}"></telerik:RadComboBox>
        <TextBlock Grid.Row="1" Grid.Column="0" Text="宣誓类型：" Style="{StaticResource NewInfoLable}"></TextBlock>
        <telerik:RadComboBox Grid.Row="1" Grid.Column="1" Style="{StaticResource newcombox}"></telerik:RadComboBox>
        <TextBlock Grid.Row="2" Grid.Column="0" Text="现场情况：" Style="{StaticResource NewInfoLable}"></TextBlock>
        
        <StackPanel Grid.Row="2" Grid.Column="1" Orientation="Horizontal">
            <telerik:RadButton HorizontalAlignment="Left" Margin="10 5 0 5"  Width="100" Height="100" Background="#FF5293CF" Click="RadButton_Click">
                <telerik:RadButton.Content>
                    <StackPanel Orientation="Vertical">
                        <Image Source="/Images/camera.png" Width="72" Height="72" Stretch="UniformToFill"></Image>
                        <TextBlock Text="添加" Foreground="White" HorizontalAlignment="Center" FontSize="16" ></TextBlock>
                    </StackPanel>
                </telerik:RadButton.Content>

            </telerik:RadButton>
            <ListBox x:Name="lst" ItemsPanel="{StaticResource ItemsPanelTemplate1}" ItemTemplate="{StaticResource ItemTemplate}" ></ListBox>
        </StackPanel>
    </Grid>
</UserControl>
